<?php

namespace support\bootstrap;

use common\service\FieldService;
use think\Bootstrap;

/**
 *
 * 模块字段缓存检查刷新
 */
class ModuleFieldFreshCheck implements Bootstrap
{

    public static function start($worker)
    {
        FieldService::setModuleFieldMakeTime(time());

        \Workerman\Timer::add(60, function () {
            FieldService::checkFieldNeedUpdate();
        });
    }
}
